package com.liangtian.mdm.dm.group.dao;

import com.liangtian.mdm.base.BaseDao;
import com.liangtian.mdm.dm.group.model.AttrGroup;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AttrGroupDao extends BaseDao<AttrGroup> {

    List<AttrGroup> queryGroupByModelId(String modelId);

    int deleteGroupByModelId(String modelId);

    List<AttrGroup> queryAttributeList(String modelId);

    int batchDelete(Map<String, Object> map);

    int batchUpdate(List<AttrGroup> list);

    int batchInsert(List<AttrGroup> list);

    int batchUpdateRelation(List<AttrGroup> list);

    int insertOne(AttrGroup g);

    List<AttrGroup> queryValidGroupList(String modelId);

}
